<#import "/spring.ftl" as s/>
<@override name="project">
         ${project.name}
</@override>
<@override name="main">
<ol class="wizard-nav">
    <li class="done"><a href="#"><span class="badge">1</span><small>发布信息</small></a></li>
    <li class="done"><a href="#"><span class="badge">2</span><small>触发构建</small></a></li>
    <li class="done"><a href="#"><span class="badge badge-info">3</span><small>缺陷报告</small></a></li>
    <li class="done"><a href="#"><span class="badge badge-warning">4</span><small>开发范围&特性描述</small></a></li>
    <li class="active"><a href="#" data-disabled><span class="badge badge-important">5</span><small>邮件通知&确认发布</small></a></li>
</ol><br/><br/><br/>
<#--<div id="step" name="step" align="center">-->
    <#--<table border="0">-->
        <#--<tr>-->
            <#--<td id="step1" class="">1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发布信息</td>-->
            <#--<td id="step2" class="">2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;触发构建</td>-->
            <#--<td id="step3" class="">3&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;缺陷报告</td>-->
            <#--<td id="step4" class="">4&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;特性描述</td>-->
            <#--<td id="step5" class="">5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;确认发布</td>-->
        <#--</tr>-->
    <#--</table>-->
<#--</div>-->
<fieldset >
    <legend>XXX</legend>
    <div id="step5_form_">
        <form id="step5_form" action="<@s.url '/project/milestone/wizard/wizard_form/'/>${milestone.id}" method="post">
            <table art="form" rightAlign="true" columns="1,9" autoLabel="true" colon="true">
                <tr>
                    <td></td>
                    <td><input type="hidden"  id="_page" name="_page" value="4"></td>
                </tr>

                <tr>
                    <td>
                        <label art="label" for="projectName">项目名称</label>
                    </td>
                    <td>
                        <input type="text"art="textbox" id="projectName" name="projectName" readonly="true" value="虚拟项目—EPD">
                    </td>
                </tr>

                <tr>
                    <td>
                        <label art="label" for="buildNote">构建号</label>
                    </td>
                    <td>
                        <input type="text" art="textbox" id="buildNote" name="buildNote"  readonly="true" value="${milestoneReport.buildNote}" />
                    </td>
                </tr>

                <tr>
                    <td>
                        <label art="label" for="emails" required="true">项目涉众邮件</label>
                    </td>
                    <td>
                        <textarea id="emails" name="emails"  art="textbox"  maxlength="250" width="300px" height="70px" style="resize: none" emptyText="项目涉众邮件"
                                >${milestoneReport.emails}</textarea>
                    </td>
                </tr>

                <tr>
                    <td>
                    </td>
                    <td>
                        <button type="submit" value="previous" name="_target3"> <span><span>上一步</span></span></button>
                        <button type="submit" name="_cancel" value="_cancel"><span><span>取消</span></span></button>
                        <button type="submit" name="_finish" value="_finish"><span><span>确认发布</span></span></button>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</fieldset>
</@override>
<@override name="scripts">
<script type="text/javascript">
      var  code ='${project.code}';
//      var current_page = parseInt($('#_page').attr('value'));
//      $.each( $('#step tr td'),function(item,val){
//          if(val.attributes[0].value.substring(4,5)<current_page+1){
//              val.attributes[1].value='wizard-done';
//          }else if(val.attributes[0].value.substring(4,5)==current_page+1){
//              val.attributes[1].value='wizard-doing';
//          }else{
//              val.attributes[1].value='wizard-todo';
//          }
//      })
</script>

<#--<script type="text/javascript" src="<@s.url '/resources/scripts/project/milestone/edit.js'/>"></script>-->
</@override>
<@extends name="/common/projectlayout1.1.ftl" current="milestone" title='${title}' code='${project.code}'></@extends>